/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cardgame.game.events;

import cardgame.game.*;

/**
 *
 * @author Carl
 */
public class AddHandManaEvent extends AddManaEvent{

    public AddHandManaEvent(Player player, ManaProvider manaProvider){
        super(player, manaProvider);
    }

    @Override
    public void trigger(Game game){
        Card manaCard = (Card) manaProvider;
        manaCard.getOwner().getHand().remove(manaCard);
        super.trigger(game);
        player.setHasAddedManaThisTurn(true);
    }
}
